package pack1;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Created by jack on 2017/7/2.
 * 配置类
 */
//声明当前类似一个配置类
@Configuration
//自动扫描包名下所有使用@Component、@Service、@Repository和@Controller的类，并注册为Bean
@ComponentScan("pack1")
public class DiConfig {
}
